import request from '@/utils/request'

//医院-相关接口
const API = "/admin/hosp/hospital";

export default {
  //分页查询
  getPageList(page,size,searchObj) {
    return request({
      url: `${API}/pageList/${page}/${size}`,
      method: 'get',
      params: searchObj
    })
  },
  //上线与下线
  updateStatus(id, status) {
    return request({
      url: `${API}/updateStatus/${id}/${status}`,
      method: 'put'
    })
  },
  //查看详情
  getDetailById(id) {
    return request({
      url: `${API}/getDetailById/${id}`,
      method: 'get'
    })
  },
}